module.exports = {
    baseUrl: process.env.NODE_ENV === "production" ? "https://yuanxun-1256924026.cos.ap-guangzhou.myqcloud.com/"+process.env.outputDir : "/",
    outputDir: process.env.outputDir,
    devServer: {
        port: 8888, // 端口号
        host: 'localhost',
    },
    // 打包时不生成.map文件 避免看到源码
    productionSourceMap: false,

    configureWebpack: {
        externals: {
            vue: "Vue",
        }
    },
    pages: {
        index: {
            entry: 'src/main.js',
            template: 'public/index.html',
            filename: process.env.NODE_ENV === "production" ? 'cod.html': "index.html",
        },
    },
};